<?xml version="1.0" encoding="utf-8" ?>
<Biblio.DataAccess.Ouvrages xmlns:typing="urn:xmd-typing" xmlns:mapping="urn:xmd-mapping">
  <Ouvrage>
	<typing:entity type="Biblio.DataAccess.Ouvrages.Ouvrage, Biblio.DataAccess.Ouvrages" abstract="true"/>
	<mapping:entity class="Adoor.Object.Relational.UnionMapping, Adoor.Object">
		<mapping:key class="Adoor.Object.Relational.SmartKeyMapping, Adoor.Object" PrimaryKey="OuvrageId" KeyManager="Adoor.Object.Relational.SmartKeyManager, Adoor.Object"/>
	</mapping:entity>
	<Prix>
		<typing:property type="System.Data.SqlTypes.SqlDecimal, System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
	</Prix>
    <Editeur>
		<typing:reference type="Biblio.DataAccess.Ouvrages.Editeur, Biblio.DataAccess.Ouvrages" multiplicity="1"/>
		<mapping:reference class="Adoor.Object.Relational.ForeignKeyFactory, Adoor.Object" foreign-key="Editeur2"/>
	</Editeur>
  </Ouvrage>
  <Livre>
	<typing:entity type="Biblio.DataAccess.Ouvrages.Livre, Biblio.DataAccess.Ouvrages" parent="Biblio.DataAccess.Ouvrages.Ouvrage, Biblio.DataAccess.Ouvrages"/>
	<mapping:entity class="Adoor.Object.Relational.EntityTableFactory, Adoor.Object" table="Livre2" DistinctMode="Emulated">
		<mapping:key class="Adoor.Object.Relational.SmartKeyFactory, Adoor.Object" PrimaryKey="LivreId" SqlStatement="SELECT CLASSID FROM ITCLASSES WHERE CLASSNAME='Livre'"/>
	</mapping:entity>
	<Nom>
		<typing:property type="System.String"/>
		<mapping:property column="Nom2"/>
	</Nom>
	<Isbn>
		<typing:property type="System.String"/>
		<mapping:property/>
	</Isbn>
	<Prix>
		<typing:property type="System.Data.SqlTypes.SqlDecimal, System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
		<mapping:property/>
	</Prix>
    <Editeur>
		<typing:reference type="Biblio.DataAccess.Ouvrages.Editeur, Biblio.DataAccess.Ouvrages" multiplicity="1"/>
		<mapping:reference class="Adoor.Object.Relational.ForeignKeyFactory, Adoor.Object" foreign-key="Editeur2"/>
	</Editeur>
	<Categorie>
		<typing:reference type="Biblio.DataAccess.Ouvrages.Categorie, Biblio.DataAccess.Ouvrages" multiplicity="1" parent="ListeLivre"/>
		<mapping:reference class="Adoor.Object.Relational.SingleInverseReferenceFactory, Adoor.Object"/>
	</Categorie>
	<ListeAuteur>
	    <typing:reference type="Biblio.DataAccess.Ouvrages.Auteur, Biblio.DataAccess.Ouvrages" multiplicity="*"/>
	    <mapping:reference
			class="Adoor.Object.Relational.LookupTableFactory, Adoor.Object"
			source-foreign-key="ListeLivre2"
			target-foreign-key="ListeAuteur2"
			table-name="ListeLiv_ListeAut"/>
	</ListeAuteur>	
	<ListeTest>
	    <typing:reference type="Biblio.DataAccess.Ouvrages.Test, Biblio.DataAccess.Ouvrages" multiplicity="*" parent="Livre"/>
	    <mapping:reference class="Adoor.Object.Relational.InverseReferenceFactory, Adoor.Object"/>
	</ListeTest>
  </Livre>
  <NumeroRevue>
	<typing:entity type="Biblio.DataAccess.Ouvrages.NumeroRevue, Biblio.DataAccess.Ouvrages" parent="Biblio.DataAccess.Ouvrages.Ouvrage, Biblio.DataAccess.Ouvrages"/>
	<mapping:entity class="Adoor.Object.Relational.EntityTableFactory, Adoor.Object" table="NumeroRevue2"  DistinctMode="Supported">
		<mapping:key class="Adoor.Object.Relational.SmartKeyFactory, Adoor.Object" PrimaryKey="NumeroRevueId" SqlStatement="SELECT CLASSID FROM ITCLASSES WHERE CLASSNAME='NumeroRevue'"/>
	</mapping:entity>
	<DateParution>
		<typing:property type="System.DateTime"/>
		<mapping:property/>
	</DateParution>
	<Prix>
		<typing:property type="System.Data.SqlTypes.SqlDecimal, System.Data, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
		<mapping:property/>
	</Prix>
    <Editeur>
		<typing:reference type="Biblio.DataAccess.Ouvrages.Editeur, Biblio.DataAccess.Ouvrages" multiplicity="1"/>
		<mapping:reference  class="Adoor.Object.Relational.ForeignKeyFactory, Adoor.Object" foreign-key="Editeur2"/>
	</Editeur>
	<Revue>
 	    <typing:reference type="Biblio.DataAccess.Ouvrages.Revue, Biblio.DataAccess.Ouvrages" multiplicity="1" parent="ListeNumeroRevue"/>
	    <mapping:reference class="Adoor.Object.Relational.SingleInverseReferenceFactory, Adoor.Object"/>
    </Revue>
  </NumeroRevue>
  <Revue>
	<typing:entity type="Biblio.DataAccess.Ouvrages.Revue, Biblio.DataAccess.Ouvrages"/>
	<mapping:entity class="Adoor.Object.Relational.EntityTableFactory, Adoor.Object" table="Revue2" DistinctMode="Supported">
		<mapping:key class="Adoor.Object.Relational.SmartKeyFactory, Adoor.Object" PrimaryKey="RevueId"  SqlStatement="SELECT CLASSID FROM ITCLASSES WHERE CLASSNAME='Revue'"/>
	</mapping:entity>
	<Frequence>
		<typing:property type="Biblio.DataAccess.Ouvrages.FrequenceType, Biblio.DataAccess.Ouvrages"/>
		<mapping:property/>
	</Frequence>
	<Titre>
		<typing:property type="System.String"/>
		<mapping:property/>
	</Titre>
	<Libelle>
		<typing:property type="System.String"/>
		<mapping:property/>
	</Libelle>
	<ListeNumeroRevue>
	    <typing:reference type="Biblio.DataAccess.Ouvrages.NumeroRevue, Biblio.DataAccess.Ouvrages" multiplicity="*"/>
	    <mapping:reference
	        class="Adoor.Object.Relational.LookupTableFactory, Adoor.Object"
	        source-foreign-key="Revue2"
	        target-foreign-key="ListeNumeroRevue2"
	        table-name="ListeNum_Revue"/>
    </ListeNumeroRevue>
  </Revue>
  <Categorie>
	<typing:entity type="Biblio.DataAccess.Ouvrages.Categorie, Biblio.DataAccess.Ouvrages"/>
	<mapping:entity class="Adoor.Object.Relational.EntityTableFactory, Adoor.Object" table="Categorie2" DistinctMode="Supported">
		<mapping:key class="Adoor.Object.Relational.SmartKeyFactory, Adoor.Object" PrimaryKey="CategorieId" SqlStatement="SELECT CLASSID FROM ITCLASSES WHERE CLASSNAME='Categorie'"/>
	</mapping:entity>
	<Libelle>
		<typing:property type="System.String"/>
		<mapping:property/>
	</Libelle>
	<ListeLivre>
	    <typing:reference type="Biblio.DataAccess.Ouvrages.Livre, Biblio.DataAccess.Ouvrages" multiplicity="*"/>
	    <mapping:reference
	        class="Adoor.Object.Relational.LookupTableFactory, Adoor.Object"
	        source-foreign-key="Categorie2"
	        target-foreign-key="ListeLivre2"
	        table-name="Categori_ListeLiv"/>
    </ListeLivre>
  </Categorie>
  <Auteur>
	<typing:entity type="Biblio.DataAccess.Ouvrages.Auteur, Biblio.DataAccess.Ouvrages"/>
	<mapping:entity class="Adoor.Object.Relational.EntityTableFactory, Adoor.Object" table="Auteur2" DistinctMode="Supported">
		<mapping:key class="Adoor.Object.Relational.SmartKeyFactory, Adoor.Object" PrimaryKey="AuteurId" SqlStatement="SELECT CLASSID FROM ITCLASSES WHERE CLASSNAME='Auteur'"/>
	</mapping:entity>
	<Nom>
		<typing:property type="System.String"/>
		<mapping:property/>
	</Nom>
	<Prenom>
		<typing:property type="System.String"/>
		<mapping:property/>
	</Prenom>
	<ListeLivre>
		<typing:reference type="Biblio.DataAccess.Ouvrages.Livre, Biblio.DataAccess.Ouvrages" multiplicity="*" parent="ListeAuteur"/>
		<mapping:reference class="Adoor.Object.Relational.InverseReferenceFactory, Adoor.Object"/>
	</ListeLivre>
	<ListeTest>
	    <typing:reference type="Biblio.DataAccess.Ouvrages.Test, Biblio.DataAccess.Ouvrages" multiplicity="*" parent="Auteur"/>
	    <mapping:reference class="Adoor.Object.Relational.InverseReferenceFactory, Adoor.Object"/>
	</ListeTest>
  </Auteur>  
  <Editeur>
	<typing:entity type="Biblio.DataAccess.Ouvrages.Editeur, Biblio.DataAccess.Ouvrages"/>
	<mapping:entity class="Adoor.Object.Relational.EntityTableFactory, Adoor.Object" table="Editeur2" DistinctMode="Supported">
		<mapping:key class="Adoor.Object.Relational.SmartKeyFactory, Adoor.Object" PrimaryKey="EditeurId" SqlStatement="SELECT CLASSID FROM ITCLASSES WHERE CLASSNAME='Editeur'"/>
	</mapping:entity>
	<Nom>
		<typing:property type="System.String"/>
		<mapping:property/>
	</Nom>
  </Editeur>
  
  <Test>
	<typing:entity type="Biblio.DataAccess.Ouvrages.Test, Biblio.DataAccess.Ouvrages"/>
	<mapping:entity class="Adoor.Object.Relational.EntityTableFactory, Adoor.Object" table="Test" DistinctMode="Supported">
		<mapping:key class="Adoor.Object.Relational.CompositeKeyFactory, Adoor.Object" PrimaryKey="Livre,Auteur"/>
	</mapping:entity>
    <Livre>
		<typing:reference type="Biblio.DataAccess.Ouvrages.Livre, Biblio.DataAccess.Ouvrages" multiplicity="1"/>
		<mapping:reference class="Adoor.Object.Relational.ForeignKeyFactory, Adoor.Object" foreign-key="Livre"/>
	</Livre>
    <Auteur>
		<typing:reference type="Biblio.DataAccess.Ouvrages.Auteur, Biblio.DataAccess.Ouvrages" multiplicity="1"/>
		<mapping:reference class="Adoor.Object.Relational.ForeignKeyFactory, Adoor.Object" foreign-key="Auteur"/>
	</Auteur>
	<Contribution>
		<typing:property type="System.String"/>
		<mapping:property/>
	</Contribution>
  </Test>

</Biblio.DataAccess.Ouvrages>